package javacore.Statements;

public class Precedence {

	public static void main(String[] args) {
		
		int x;
		
		// Bad practice
		x = 2 + 3 * 5; // 17
		System.out.println(x);
		
		// Good practice
		x = (2 + 3) * 5; // 25
		System.out.println(x);
		
		// Good practice
		x = 2 + (3 * 5); // 17
		System.out.println(x);
		

	}

}
